#include <unitree_sdk/unitree_udp.h>
#include <iostream>

int main() {
    // 测试UDP构造和析构
    const char* localIP = "127.0.0.1";
    uint16_t localPort = 8001;
    const char* targetIP = "127.0.0.1";
    uint16_t targetPort = 8002;
    std::cout << "Creating UDP object..." << std::endl;
    UNITREE_LEGGED_SDK::UDP udp(localIP, localPort, targetIP, targetPort);
    std::cout << "UDP object created." << std::endl;
    // 析构时会自动释放资源
    return 0;
}
